// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
Vue.use(VueResource)
// 引入mint-ui的css文件
import 'mint-ui/lib/style.min.css'
// 引入mint-ui对象
import mintUI from 'mint-ui'
// 将mint-ui对象绑定到vue上
Vue.use(mintUI);
import '../static/mui/css/mui.css'
import '../static/mui/css/icons-extra.css'

Vue.config.productionTip = false
// 引入时间格式化插件
import moment from 'moment'
Vue.filter('datefmt',function(input,fmtstring){
  return moment(input).format(fmtstring);
});
import VuePreview from 'vue-preview';
Vue.use(VuePreview);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
